<?php $this->load->view('common/header');?>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="/common">首页</a></li>
        <li><a href="/dinner/album?dinner_id=<?php if(isset($dinner_id)){echo $dinner_id;}else{echo $info['id'];}?>">宴会相册</a></li>
        <li><a href="javascript:;">添加</a></li>
    </ul>
</div>

<div class="formbody">
<form  method="post" id="form">
    <div class="formtitle"><span>添加菜品</span></div>
    <ul class="forminfo">
         <li>
            <label>相册名称:</label>
            <input name="id" type="hidden" class="dfinput" value="<?php echo $info['id'];?>"/>
            <input name="dinner_id" type="hidden" class="dfinput" value="<?php echo $info['dinner_id'];?>"/>
            <input name="name" type="text" class="dfinput" value="<?php echo $info['name'];?>" valType="required" msg="名称不能为空"/><b>*</b>
        </li>
        <li><label>价格</label><input name="price" type="text" class="dfinput" value="<?php echo $info['price'];?>" valType="required" msg="请填写价格"/><b>*</b></li>
        <li><label>描述</label><textarea name="desc" class="textinput"><?php echo $info['desc'];?></textarea></li>
        <li>
            <label>封面图</label>
            <ul id="uploader_cover_img">
                <?php if(isset($info['cover_img']) && !empty($info['cover_img'])):?>
                <li id="SWFUpload_0_0" class="pic pro_gre" style="margin-right: 20px; clear: none">
                    <a class="close del-pic" href="javascript:;"></a>
                    <img src="<?php echo get_img_url($info['cover_img'])?>" style="width: 100%; height: 100%">
                    <input type="hidden" name="cover_img" value="<?php echo $info['cover_img']?>">
                </li>
                <?php endif;?>
                <li class="pic pic-add add-pic" style="float: left;width: 220px;height: 175px;clear:none;">
                    <a href="javascript:;" class="up-img"  id="file_cover_img"><span>+</span><br>添加照片</a>
                </li>
            </ul>
        </li>
        <li><label>&nbsp;</label><input  type="submit" class="btn" value="确认保存"/></li>
    </ul>
    </form>
</div>
<script type="text/javascript" src="<?php echo css_js_url('jquery.min.js', 'common');?>"></script>
<script type="text/javascript" src="<?php echo css_js_url('jquery.swfupload.js', 'common');?>"></script>
<script type="text/javascript" src="<?php echo css_js_url('swfupload.js', 'admin')?>"></script>
<script type="text/javascript" src="<?php echo css_js_url('admin_upload.js', 'admin');?>"></script>
<script type="text/javascript" src="<?php echo css_js_url('dialog.js', 'admin');?>"></script>
<script src="<?php echo css_js_url('jq.validate.js','admin');?>"></script>
<?php $this->load->view('common/footer');?>
</body>
</html>